﻿using Grow.Domain.EventBus.Cap.SubscriberDomainEvents;

namespace Grow.Domain.EventBus.Cap.DomainEventHandlerInvoker
{
    /// <summary>
    /// 事件处理类执行器
    /// </summary>
    public interface IDomainEventHandlerInvoker
    {
        /// <summary>
        /// 执行
        /// </summary>
        /// <param name="subscriberDomainEventDto"></param>
        /// <param name="cancellationToken"></param>
        /// <returns></returns>
        Task InvokerAsync(SubscriberDomainEventDto subscriberDomainEventDto, CancellationToken cancellationToken = default);
    }
}

